mylib=libcal.so

%.o:%.c
	gcc -fPIC -c $<
$(mylib):add.o sub.o
	gcc -shared -o $(mylib) $^


.PHONY:clean
clean:
	rm -rf $(mylib) ./*.o

.PHONY:output
output:
	mkdir -p mlib/include
	mkdir -p mlib/lib
	cp ./*.h mlib/include
	cp ./*.so mlib/lib